<?php
/**
 *
 * @copyright   Copyright(c) 2011
 * @author      yuansir <yuansir@live.cn/yuansir-web.com>
 * @version     1.0
 */
class homeController extends Controller {

        public function __construct() {
                parent::__construct();
        }

        public function index() {

                $data = array('data'=>"see",'data2'=>"look");
                $this->showTemplate('home', $data);
                exit();
//
//                $object->set_byfile('http://localhost/framework/error/2011-12-28_SQL.txt');//服务器文件名,包括路径
//                $object->filename = "2011-12-28_SQL.txt";//下载另存为的文件名
//                $object->download();
        }

		public function test(){
			print_r($this->Smarty);
				$this->Smarty->assign("option_selected", "NE");

				$this->Smarty->display('index.tpl');
		}
}

